package com.xunker.appointment.model.dictory;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunker.appointment.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@HeadRowHeight(20)//设置excel宽和高
@ColumnWidth(25)
@TableName("dictory")
public class DictManager extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ExcelIgnore
    @ExcelProperty(value = "项目编号")
    @ApiModelProperty(value = "编号")
    private Long id;
    @ExcelIgnore
    private Long parentId;
    @ExcelProperty(value = "项目名称")
    private String name;
    @ExcelProperty(value = "项目值")
    private Long value;
    @ExcelProperty(value = "项目代码")
    private String dictoryCode;
    @ExcelIgnore
    @ApiModelProperty("是否包含子节点")
    @TableField(exist = false)//判断子节点
    private boolean hasChildren;
}
